'''
Created on 10/01/2011

@author: jguerrer
'''

class Vertex:
    '''
    classdocs
    '''



    def __init__(self, id , coords , incidentEdge):
        '''
        Constructor
        '''
        #print "VErtice: "  + id +  " " + str(coords)

        self.id = id;
        self.coords = coords;
        self.incidentEdge = incidentEdge #aunque se lo podria pasar inmediatamente
        
    def getId(self):
        return self.id;
    def getCoords(self):
        return self.coords;
    def getIncidentEdge(self):
        return self.incidentEdge;
    
    def toString(self):
        data=''
        if not self.id ==  None:
            data += "v" + self.id
        if not self.coords ==  None:
            data += "\t\tCoords: "  + str(self.coords)
        if not self.incidentEdge ==  None:
            data += "\t\tIEdge: "  + self.incidentEdge.id
        return data;